package de.bloxel.core.events;

/**
 * Event subscribers must implement this interface and register via the {@link EventManager}subscribe method to receive events.
 * 
 * @author dorer
 * @since 0.1.0
 */
public interface EventListener {

  /**
   * override to implement custom event handling
   * 
   * @param theEvent
   *          that needs to be handled
   * @return true, if the listener digested the event and the event should not be propagated to other listeners else false
   */
  public boolean handleEvent(Event theEvent);
}